package hcn.protocol.brandnew.dengji.jianyanyuyue;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 检验预约分时段号源查询-响应消息(成功) - ODS_02060003_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class LabAppointQueryDivisionCodeResponse {

    /**
     * 时段集合
     */
    @XmlElementWrapper(name = "Datelists")
    @XmlElement(name = "Datelist")
    private List<Datelist> datelists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Datelist {

        /**
         * 预约采样时段
         */
        @XmlElement(name = "AppointsVisitTime")
        private String appointsVisitTime;
        /**
         * 预约时段低值
         */
        @XmlElement(name = "EffectiveTimeLow")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date effectiveTimeLow;
        /**
         * 预约时段高值
         */
        @XmlElement(name = "EffectiveTimeHigh")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date effectiveTimeHigh;
        /**
         * 可预约号源总数
         */
        @XmlElement(name = "TotalCount")
        private Integer totalCount;
        /**
         * 可预约剩余号源数
         */
        @XmlElement(name = "RemainCount")
        private Integer remainCount;
    }

}
